// 1.app广告，点击关闭，隐藏app这个div
var close = document.getElementsByClassName("close-app")[0];
var app = document.getElementsByClassName("app")[0];
close.onclick = function(){
	app.style.display = "none";
}
//2 导航条颜色
var search_header = document.getElementById("search-header");     
window.onscroll = function(){	
var scroll_height = window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;
console.log(scroll_height);
if(scroll_height >= 300){
		search_header.style.backgroundColor = "orange"
	}
else{
	search_header.style.backgroundColor = "transparent";
}
   }
//jquery 方法
$(window).scroll(function(){
	 // console.log($(window).scrollTop())
	 var scroll_height = $(window).scrollTop();
	if(scroll_height>=550){
		search_header.style.backgroundColor = "orange"
		 // search_header.className = 'header-wrapper bg-orange';  
//		 (用不一样的身份标签来寻找 改一下标记)
	}
	else{
		 // search_header.className = 'header-wrapper';
		 search_header.style.backgroundColor = 'transparent';
	}
})




